package com.hancai.barrage.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hancai.barrage.utils.Constant;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
@Getter
@Setter
public class Barrage {
    private Long id;

    private String content;

    private Client author;

    private Long videoId;

    private String videoTitle;

    private Integer videoTime;
    //单位时间：秒
    private Integer likes;

    private String color;

    private String fontSize;

    @JsonFormat(pattern = Constant.DEFAULT_FORMAT_DATETIME_PATTERN,timezone = Constant.DEFAULT_FORMAT_DATETIME_TIMEZONE)
    private Date releaseTime;

    private Integer status;

}